﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VictorBlaga.DocumentManagement.Infrastructure
{
    public static class StringExtensions
    {
        public static string CapFirstLetter(this string s)
        {
            if (s.Length == 0) return s;
            string result = "";
            result += s[0].ToString().ToUpper();
            for (int i = 1; i < s.Length; i++)
                result += s[i].ToString().ToLower();

            return result;
        }
    }
}
